package com.fgw.controller.portal;

import com.fgw.common.ServerResponse;
import com.fgw.service.IPxtonzhiService;
import com.fgw.vo.PxtonzhiListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by lyj on 2017/9/8.
 */
@Controller
@RequestMapping("/Pxtonzhi/")
public class PxtonzhiController {

    @Autowired
    private IPxtonzhiService iPxtonzhiService;

    /**
     * 前端互动交流列表Controller
     * @return
     */
    @RequestMapping(value = "list.do",method = RequestMethod.GET)
    @ResponseBody
    public ServerResponse<PxtonzhiListVo> getNeedPxtongzhiList(){

        return iPxtonzhiService.getNeedListTongzhi();
    }

}
